package ucu.edu.uy.core;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

//cambio nada, esto va a dar conflicto

//pepe no tiene conflicto

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		CountryManager mgr = new CountryManager();
		
		while (true) {
			System.out.printf("Digite un continente [1-Americas, 2-Europa, 3-Asia]:");
	     	String continent = in.readLine();
	     	try{
	     		int cont = Integer.parseInt(continent);
	     		String[] lista = mgr.getCountries(cont);
	     		for (int loopvar = 0; loopvar <= lista.length-1; loopvar ++){
	     			System.out.println(lista[loopvar]);
	     		} 
	     	}
	     	catch(Exception e){
	     		System.out.println(e.getMessage());
	     	}
		}
     	
	}

}
